package com.updesignsz.admin.vo.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;


@NoArgsConstructor
@AllArgsConstructor
@Data
public class ProjectsForm {

    @NotNull(message = "Id不能为空", groups = PutMapping.class)
    private Integer id;

    private String completeDate;

    @NotNull(message = "项目类型不能为空", groups = {PutMapping.class, PostMapping.class})
    private Integer type;

    @NotBlank(message = "项目名称不能为空", groups = {PutMapping.class, PostMapping.class})
    private String name;

    @NotBlank(message = "项目业主不能为空", groups = {PutMapping.class, PostMapping.class})
    private String ownerName;

    @NotBlank(message = "建筑设计不能为空", groups = {PutMapping.class, PostMapping.class})
    private String architecture;

    private String viewDesign;

    @NotBlank(message = "项目图片不能为空", groups = {PutMapping.class, PostMapping.class})
    private String projectImage;

    @NotBlank(message = "地区不能为空", groups = {PutMapping.class, PostMapping.class})
    private String area;






}
